Skip to content

Add instructions about Co-Authored-by commit trailer by Coding Agent - #1987

Open
Mariatta wants to merge 3 commits into
python:mainfrom
Mariatta:ai-policy-no-coauthor-trailer
Open

Mariatta wants to merge 3 commits into
python:mainfrom
Mariatta:ai-policy-no-coauthor-trailer

Conversation

@Mariatta

@Mariatta Mariatta commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

The Co-authored-by should be used to give attribution to a real person, not to ai tools. Adding this to the CPython AGENTS.md file as well as to the DevGuide AI Tools section.

Related to: #1950

The Co-authored-by should be used to give attribution to a real person, not to ai tools.
@read-the-docs-community

read-the-docs-community Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 CPython devguide | 🛠️ Build #36138441 | 📁 Comparing 89e4f50 against latest (e97d25f)

  🔍 Preview build  

1 file changed
± getting-started/ai-tools/index.html

Comment thread getting-started/ai-tools.rst Outdated
In commit messages, do not add a ``Co-authored-by`` trailer, or any other
attribution trailer, that names an AI tool. ``Co-authored-by`` should be
reserved for human contributors. Exceptions are for the bots and tools
installed by the core team, such as ``blurb-it[bot]`` and ``dependabot[bot]``.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need to add the bots note? They are added by processes contributors don’t' control.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought it was worth being explicit, or at least document, that there are other non-human tools that could use this trailer.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I worry "tools installed by the core team" is hard to pin down and reads as a possible loophole. For example, I have claude installed, but we don't want its trailer. Since the rule is about trailers contributors add, the bot ones don't need an exception.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the claude app you installed is to your own GitHub account, and not to the org?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the claude app you installed is to your own GitHub account, and not to the org?

Yes, but the current sentence doesn't say that, so I'm a little worried about its vagueness.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok I think my intention here is to refer to the org-installed app. I can clarify that.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wording updated to be explicitly about apps installed on the org.

Comment on lines +34 to +35
Many AI coding tools add this trailer by default, so check your tool's
settings and your commits.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why? we use squash merge. what appears in branch commit messages in PRs themselves is irrelevant.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ref first para of #1950 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants